package cola.rh.System.common.result;

import lombok.Getter;

/**
 * @Name: PublicCodeEnum
 * @Author: Cola
 * @Time: 2023/3/14 15:57
 * @Description:
 */
@Getter
public enum PublicCodeEnum {

    STATUS_OK(1, "状态（可用）"),
    STATUS_FAIL(0, "状态（不可用）"),
    ADMIN_CODE(1, "超级管理员"),
    PARENT_CODE(0, "顶级目录"),
    MENU_CODE(1, "菜单"),
    BUTTON_CODE(2, "按钮"),
    ;

    private Integer code;
    private String message;

    private PublicCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
